import request from '@/utils/request'

/**
 * @description: 获取部门资料清单
 * @param {*} params
 * @return {*}
 */
export function getDepart(params) {
  return request({
    url: '/depart/list',
    params
  })
}

/**
 * @description: 新增部门资料
 * @param {*} data
 * @return {*}
 */
export function addDepartItem(data) {
  return request({
    url: '/depart/add',
    method: 'post',
    data
  })
}

/**
 * @description: 更新部门资料
 * @param {*} data
 * @return {*}
 */
export function updateDepartItem(data) {
  return request({
    url: '/depart/update',
    method: 'post',
    data
  })
}

/**
 * @description: 删除部门资料
 * @param {*} data
 * @return {*}
 */
export function deleteDepartItem(data) {
  return request({
    url: '/depart/delete',
    method: 'post',
    data
  })
}
